package com.qf.homework.common;


/**
 * 统一的返回结果（正常还是异常情况 我们给前端都要返回R）
 * @author Administrator
 *
 */
public class R {
	/**
	 *  返回的码
	 */
	private String code;
	/**
	 *  返回的信息
	 */
	private String message;
	/**
	 *  返回的对象
	 */
	private Object data;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public R() {
		// TODO Auto-generated constructor stub
	}
	public R(String code, String message, Object data) {
		super();
		this.code = code;
		this.message = message;
		this.data = data;
	}
}
